<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>3d位移透视</title>
    <style>
        body{
            perspective: 500px;
        }
        div{
            margin: 100px auto;
            width: 100px;
            height: 100px;
            background-color: pink;
            /* transform: translateX(100px); */
            /* transform: translateY(100px); */
            transform: translateZ(100px);
            /* transform: translate3d(100px,100px,100px); */
            
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>